<!-- src/webapp/login.html -->
<form action="LoginServlet" method="post">
    <input type="text" name="username" placeholder="用户名">
    <input type="password" name="password" placeholder="密码">
    <button type="submit">登录</button>
    <div class="error">${error}</div>
</form>